package com.easylive.entity.enums;

public enum CommentTopTypeEnum {
    NO_TOP(0, "不置顶"),
    TOP(1, "置顶");

    private Integer type;
    private String desc;


    CommentTopTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }
    public static CommentTopTypeEnum getByType(Integer type){
        for(CommentTopTypeEnum item : CommentTopTypeEnum.values()){
            if(item.getType().equals(type)){
                return item;
            }
        }
        return null;
    }

    public String getDesc(){
        return desc;
    }
    public Integer getType(){
        return type;
    }


}
